Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create HIPS-style properties file #358

Merged
merged 8 commits into from
Sep 26, 2024
Merged

Create HIPS-style properties file #358

merged 8 commits into from
Sep 26, 2024

Conversation

delucchi-cmu
Copy link
Contributor

Change Description

This introduces a java-style properties file, similar to the properties file in the HiPS standard.

This fully replaces the catalog_info.json file, and removes the provenance info handling from this library. Individual tools will optionally write out some tool arguments file (see #351).

Closes #347, #348, #351

Related to issue #339, as the hats_builder kwarg will be used for importing tool name and date.

Working branches that work with this change:

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@delucchi-cmu delucchi-cmu changed the base branch from main to hats September 25, 2024 18:29
Copy link

Before [4357f0c] After [83ceadf] Ratio Benchmark (Parameter)
failed 18.9±0.3ms n/a benchmarks.MetadataSuite.time_load_partition_info_order6
failed 77.2±1ms n/a benchmarks.MetadataSuite.time_load_partition_info_order7
failed 76.7±0.7ms n/a benchmarks.MetadataSuite.time_load_partition_join_info
failed 13.5±0.2ms n/a benchmarks.Suite.time_inner_pixel_alignment
failed 393±3ms n/a benchmarks.Suite.time_outer_pixel_alignment
failed 88.9±2ms n/a benchmarks.Suite.time_paths_creation
failed 43.9±0.3ms n/a benchmarks.Suite.time_pixel_tree_creation
failed 124±0.4ms n/a benchmarks.time_test_alignment_even_sky
failed 983±3μs n/a benchmarks.time_test_cone_filter_multiple_order

Click here to view all benchmarks.

Copy link

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (hats@bda0aa0). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             hats     #358   +/-   ##
=======================================
  Coverage        ?   93.40%           
=======================================
  Files           ?       49           
  Lines           ?     1956           
  Branches        ?        0           
=======================================
  Hits            ?     1827           
  Misses          ?      129           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@gitosaurus gitosaurus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beyond minor style concerns, I do have questions about the string split and decorator name.

Copy link
Contributor Author

@delucchi-cmu delucchi-cmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for such a thorough review, and teaching me things!

tests/hats/io/test_validation.py Outdated Show resolved Hide resolved
src/hats/catalog/dataset/table_properties.py Outdated Show resolved Hide resolved
src/hats/catalog/dataset/table_properties.py Outdated Show resolved Hide resolved
src/hats/catalog/dataset/table_properties.py Outdated Show resolved Hide resolved
src/hats/catalog/dataset/table_properties.py Outdated Show resolved Hide resolved
src/hats/catalog/dataset/dataset.py Show resolved Hide resolved
src/hats/catalog/dataset/table_properties.py Outdated Show resolved Hide resolved
delucchi-cmu added a commit that referenced this pull request Oct 16, 2024
* Initial renaming (#352)

* Initial renaming

* A few more spots.

* Docs issues found in code review.

* Few more issues of bad find/replace...

* Update unit test data with changes to hipscat-import (#354)

* Update unit test data with changes to hipscat-import

* Add new pylint config.

* Create HIPS-style properties file (#358)

* Update unit test data with changes to hipscat-import

* Add new pylint config.

* catalog_info.json -> properties.

* Support hips-style space-delimited lists

* Good type hint

* Reduce duplication.

* Changes from code review

* Add default column to properties (#359)

* Add default column to properties

* Add fractional coverage on partition info

* Add convenience import.

* Clean it up

* Comment about square degrees.

* Add copy_and_update

* replace hipscat index

* update docs

* fix typo

* isort

* rename test hipscat id

* Improve reading/writing of fits file. (#361)

* Improve reading/writing of fits file.

* Pylint findings

* Set total_rows to non-none value. (#362)

* Code review comments.

* change healpix to index type

* update return type

* Clean up straggling instances of hips/hipscat (#369)

* Straggling instances of hips/hipscat

* A little more cleanup

* Insert dataset dir and use general ra/dec column names. (#377)

* Insert dataset dir and use general ra/dec column names.

* Update documentated directory structure.

* Code review comments.

---------

Co-authored-by: Sean McGuire <[email protected]>
Co-authored-by: Sean McGuire <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adapt HIPS property names
2 participants